home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1998 June / Macworld (1998-06).dmg / Shareware World / Utilities / Video / MVEMVC / MyVidEditor 2.1 / Scripts Folder / Compress a movie Script < prev    next >
Text File  |  1998-01-30  |  606b  |  17 lines

  1. tell application "MyVidEditor©"
  2.     activate
  3.     set i to 1
  4.     repeat while Select setting i
  5.         -- Select setting will return false IF your "i" value is wrong - so once there are no more settings, it stops
  6.         copy ("Part 2 HD:crap test " & i as string) to crappyname
  7.         -- this "copy" just numbers each movie differently
  8.         with timeout of 100000 seconds
  9.             -- this "timeout of 100000" prevents a timeout error being generated during long compressions
  10.             if Compress movie file "Part 2 HD:crap test" to movie file crappyname then
  11.                 set i to i + 1
  12.             else
  13.                 set i to 500
  14.             end if
  15.         end timeout
  16.     end repeat
  17. end tell